package com.yxinsur.imc.business.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxinsur.imc.common.annotation.Excel;
import com.yxinsur.imc.common.core.domain.BaseImcEntity;

/**
 * 代理人奖惩记录对象 imc_broker_rewards_record
 * 
 * @author imc
 * @date 2021-07-13
 */
public class ImcBrokerRewardsRecord extends BaseImcEntity
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 代理人id */
    @Excel(name = "代理人id")
    private Long brokerId;

    /** 奖惩记录类型 */
    @Excel(name = "奖惩记录类型")
    private String recordType;

    /** 奖惩原因 */
    @Excel(name = "奖惩原因")
    private String recordCause;

    /** 奖惩处理结果 */
    @Excel(name = "奖惩处理结果")
    private String recordResult;

    /** 前端传YYYY-MM-DD */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "前端传YYYY-MM-DD", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    /** 租户id,一个租户id唯一对一个机构id（默认机构id为根节点id暨法人机构） */
    @Excel(name = "租户id,一个租户id唯一对一个机构id", readConverterExp = "默=认机构id为根节点id暨法人机构")
    private Long tenantId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBrokerId(Long brokerId) 
    {
        this.brokerId = brokerId;
    }

    public Long getBrokerId() 
    {
        return brokerId;
    }
    public void setRecordType(String recordType) 
    {
        this.recordType = recordType;
    }

    public String getRecordType() 
    {
        return recordType;
    }
    public void setRecordCause(String recordCause)
    {
        this.recordCause = recordCause;
    }

    public String getRecordCause()
    {
        return recordCause;
    }
    public void setRecordResult(String recordResult)
    {
        this.recordResult = recordResult;
    }

    public String getRecordResult()
    {
        return recordResult;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }

    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("brokerId", getBrokerId())
            .append("recordType", getRecordType())
            .append("recordCause", getRecordCause())
            .append("recordResult", getRecordResult())
            .append("recordTime", getRecordTime())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .append("tenantId", getTenantId())
            .toString();
    }
}
